From: Keir Fraser Date: Tue, 31 Mar 2009 10:26:10 +0000 (+0100) Subject: xend: Allow drbd disks. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~13989^2~64 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ea3ee2e615de6ecd55a5b7e26eaee383e9b5eec2;p=xen.git xend: Allow drbd disks. From: Ben Timby Signed-off-by: Keir Fraser --- diff --git a/tools/python/xen/util/blkif.py b/tools/python/xen/util/blkif.py index 29b23fb7dd..6091afe5ac 100644 --- a/tools/python/xen/util/blkif.py +++ b/tools/python/xen/util/blkif.py @@ -75,7 +75,7 @@ def _parse_uname(uname): fn = taptype = None if uname.find(":") != -1: (typ, fn) = uname.split(":", 1) - if typ == "phy" and not fn.startswith("/"): + if typ in ("phy", "drbd") and not fn.startswith("/"): fn = "/dev/%s" %(fn,) if typ == "tap": (taptype, fn) = fn.split(":", 1)